
<div class="right-card">
    <div class="right-card-main" style="padding: 10px 20px;font-size: 0.8em;">

            <div class="right-card-title">登录</div>
            <div class="cl-reg">
                <form action="/login" method="post">
                    @csrf
                    Email：
                    <input type="text" name="email" value="{{old('email')}}" style="width: 100%">
                    <br>
                    密码：
                    <input type="text" name="password" style="width: 100%">
                    @if (count($errors) > 0)
                        <div class="">
                            <ul style="color:red;">
                                {{--    {{$errors}}--}}
                                @foreach ($errors->all() as $error)
                                    {{ $error }}
                                @endforeach
                            </ul>
                        </div>
                    @endif
                <input class="btn" type="submit" value="登录" style="margin:10px">
                &nbsp;<a href="/reg">去注册</a>
            </form>
        </div>


    </div>
</div>



